import http from '@/utils/http'

export const addReview = (data) => {
  return http({
    url: `/order/api/review/add`,
    method: 'POST',
    data
  })
}

export const getCarListAPI = (uid) => {
  return http({
    url: `/order/api/cart/getCartList/${uid}`,
    method: 'get',
  })
}

export const deleteCarAPI = (params) => {

  return http({
    url: `/order/api/cart/removeFromCart`,
    method: 'get',
    params
  })
}

export const mergeCarAPI = (uid) => {
  return http({
    url: `/order/api/cart/getCartList/${uid}`,
    method: 'get',
  })
}